import axios from "axios";

const courseApi = {
  addCourses(data) {
    return axios.post('/courses/addCourses', data)
  },
  getCoursesBySubjectsId(params) {
    return axios.get('/courses/getCoursesBySubjectsId', {
      params
    })
  },
  deleteCourse(_id) {
    return axios.delete('/courses/deleteCourses', {
      data: {
        _id
      }
    })
  }
}

export default courseApi